import Vue from 'vue'
import App from './App.vue';
import { Carousel,
         CarouselItem,
         Image,Header,
         Message,
         MessageBox,
         Button,
         Drawer,
         TabPane,
         Tabs,
         Form,
         FormItem,
         Input,
         Select,
         Option,
         Container,
         Aside,
         Main,
         Menu,
         MenuItem,
         Row,
         Col,
         Link,
         Rate,
         DropdownMenu,
         DropdownItem,
         Dropdown,
         Switch,
         Checkbox,
         CheckboxGroup,
         Radio,
         RadioGroup,
         DatePicker,
         TimePicker
        } from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import router from '../router'
import depot from "../http/index"

//封装axios
import axios from 'axios'
Vue.prototype.$http = axios
depot()

Vue.config.productionTip = false
Vue.use(Carousel)
Vue.use(CarouselItem)
Vue.use(Image)
Vue.use(Header)
Vue.use(Button)
Vue.use(Drawer)
Vue.use(TabPane)
Vue.use(Tabs)
Vue.use(Form)
Vue.use(FormItem)
Vue.use(Input)
Vue.use(Select)
Vue.use(Option)
Vue.use(Container)
Vue.use(Aside)
Vue.use(Main)
Vue.use(Menu)
Vue.use(MenuItem)
Vue.use(Row)
Vue.use(Col)
Vue.use(Link)
Vue.use(Rate)
Vue.use(DropdownMenu)
Vue.use(DropdownItem)
Vue.use(Dropdown)
Vue.use(Switch)
Vue.use(Checkbox)
Vue.use(CheckboxGroup)
Vue.use(Radio)
Vue.use(RadioGroup)
Vue.use(DatePicker)
Vue.use(TimePicker)

Vue.prototype.bus = new Vue()//bus总线,类似公共变量

Vue.prototype.$alert = MessageBox.alert
Vue.prototype.$confirm = MessageBox.confirm
Vue.prototype.$prompt = MessageBox.prompt
Vue.prototype.$message = Message
Vue.prototype.$MessageBox = MessageBox
new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
